package com.bci.pwtz.mysql.model;

import java.util.Date;

public class Resource {
	private Long resid;
	private String resname;
	private int restype;
	private Date publishtime;
	private Date invalidtime;
	private int status;
	private String reslogo;
	private String rescontent;
	private String rescontentlogo;
	private String downloadurl;
	private String describe;
	private String source;
	private int viewcount;
	public Long getResid() {
		return resid;
	}
	public void setResid(Long resid) {
		this.resid = resid;
	}
	public String getResname() {
		return resname;
	}
	public void setResname(String resname) {
		this.resname = resname== null ? null : resname.trim();
	}

	public int getRestype() {
		return restype;
	}
	public void setRestype(int restype) {
		this.restype = restype;
	}
	public Date getPublishtime() {
		return publishtime;
	}
	public void setPublishtime(Date publishtime) {
		this.publishtime = publishtime;
	}
	public Date getInvalidtime() {
		return invalidtime;
	}
	public void setInvalidtime(Date invalidtime) {
		this.invalidtime = invalidtime;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getReslogo() {
		return reslogo;
	}
	public void setReslogo(String reslogo) {
		this.reslogo = reslogo == null ? null : reslogo.trim();
	}
	public String getRescontent() {
		return rescontent;
	}
	public void setRescontent(String rescontent) {
		this.rescontent = rescontent== null ? null : rescontent.trim();
	}
	public String getRescontentlogo() {
		return rescontentlogo;
	}
	public void setRescontentlogo(String rescontentlogo) {
		this.rescontentlogo = rescontentlogo== null ? null : rescontentlogo.trim();
	}
	
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getDownloadurl() {
		return downloadurl;
	}
	public void setDownloadurl(String downloadurl) {
		this.downloadurl = downloadurl == null ? null : downloadurl.trim();
	}
	
	
	public String getDescribe() {
		return describe;
	}
	public void setDescribe(String describe) {
		this.describe = describe;
	}
	public int getViewcount()
    {
        return viewcount;
    }
    public void setViewcount(int viewcount)
    {
        this.viewcount = viewcount;
    }
    @Override
	public String toString() {
		return "Resource [resid=" + resid + ", resname=" + resname
				+ ", restype=" + restype + ", publishtime=" + publishtime
				+ ", invalidtime=" + invalidtime + ", status=" + status
				+ ", reslogo=" + reslogo + ", rescontent=" + rescontent
				+ ", rescontentlogo=" + rescontentlogo + ", downloadurl="
				+ downloadurl + ", description=" + describe +"viewcount="+viewcount+ "]";
	}
	
	
	
}
